#!/bin/sh
### Modelarts Platform train command
export TF_CPP_MIN_LOG_LEVEL=2        ## Tensorflow api print Log Config
export SLOG_PRINT_TO_STDOUT=0        ## export all logs to stdout terminal print 0:off 1:on

python3.7 ${1}/run.py \
        --config_file=${1}/configs/speech2text/jasper5x3_LibriSpeech_nvgrad_masks_cache_1p.py \
        --mode=train \
        --enable_logs

if [ $? -eq 0 ] ;
then
    echo "Jasper train success"
else
    echo "Jasper train fail"
fi
